{%include file="header.html"%}
<style>
input {	width: 200px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>编辑分类</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
  	<input type="hidden" name="cat_id" value="{%$cat_info.cat_id%}" />
    <table style=" width:100%;" cellpadding="0" cellspacing="0" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 分类名称:</td>
          <td><input type="text" name="cat_name" value="{%$cat_info.cat_name%}" required></td>
        </tr>
        <tr>
          <td class="firtd"> 上级分类:</td>
          <td><select name="parent_id"><option value="0">=顶级=</option>{%$cat_type%}</select></td>
        </tr>
        <tr>
          <td class="firtd"> 是否显示:</td>
          <td><input style="width:12px;vertical-align:middle;cursor:pointer;" type="radio" name="is_show" {%if $cat_info.is_show eq 1%}checked{%/if%} value="1"> 是 &nbsp;&nbsp;&nbsp;&nbsp;<input style="width:12px;vertical-align:middle;cursor:pointer;" {%if $cat_info.is_show eq 0%}checked{%/if%} type="radio" name="is_show" value="0"> 否</td>
        </tr>
        <tr>
          <td class="firtd"> 排序:</td>
          <td><input type="text" name="sort_order" value="{%$cat_info.sort_order%}" required></td>
        </tr>
        <tr>
          <td class="firtd"> 关键词:</td>
          <td><input style="width:350px;" name="cat_key" type="text" value="{%$cat_info.keywords%}"></td>
        </tr>
        <tr>
          <td class="firtd"> 描述:</td>
          <td><textarea name="cat_desc" style="min-height:120px; max-height:120px;">{%$cat_info.cat_desc%}</textarea></td>
        </tr>
        <tr>
          <td class="style1">&nbsp;</td>
          <td>
              <a href="JavaScript:void(0);" class="btn" onclick="reset()"><span>重置</span></a>
              <a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认提交</span></a>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="reset" id="cz" style="display: none;">
    <input type="submit" id="tj" style="display:none;";>
  </form>
</div>
</body>
<script>
    // 重置方法
    function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script>
</html>